package com.hst.capacity.domain.model.response.intercity.dispatch;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class IcCityLineCountDetail {
    private List<IcCityLineCount> icCityLineCounts;
    private String idCityLineChecked;
    private LineDetail goLine;
    private LineDetail backLine;

    @Data
    public static class IcCityLineCount{
        private String idCityLine;
        private String cityLineName;
        private int orderNumber;
    }
    @Data
    public static class LineDetail{
        private String idLine;
        private String intercityLineAlias;
        private List<OrderDetail> orders;

    }
    @Data
    public static class OrderDetail{
        private String idOrder;
        private String passengerMobile;
        private Integer passengerNumber;
        private Integer carpoolType;
        private LocalDateTime appointmentTime;
        private LocalDateTime cutOffTime;
        private String startAddressLongitude;
        private String startAddressLatitude;
        private Float estimatedMoney;
        private String passengerMemo;

    }

    public IcCityLineCountDetail(List<IcCityLineCount> cityLineCount) {
        this.icCityLineCounts=cityLineCount;
        this.goLine=new LineDetail();
        this.backLine=new LineDetail();
    }
    public LineDetail getGoLine() {
        if (goLine==null)this.goLine=new LineDetail();
        return goLine;
    }

    public LineDetail getBackLine() {
        if (goLine==null)this.backLine=new LineDetail();
        return backLine;
    }
}
